-- cure_clear
-- created by xinj
-- 施放某技能，清除中毒和燃烧

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 释放技能时触发
    trigger = function(who, prop, arg)
        local target = arg;

        -- 如果debuff是para中指定状态，则清除掉

        -- 1. 清除中毒
        PropM.deletePropById(target, "debuff", "poisoned");
        CombatStatusM.clearStatus(target, "poisoned");

        -- 2. 清除燃烧
        PropM.deletePropById(target, "debuff", "burn");
        CombatStatusM.clearStatus(target, "burn");

        return 1;
    end,

    record = function(target, prop, path)
        return false;
    end
};
